#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>
int main()
{
	char arr[5] = { 0 };
	scanf("%s", arr);
	printf("\n");
	int c = strlen(arr);
	int i = 0;
	for (i = c - 1; i >= 0; i--)
	{
		printf("%c", arr[i]);
	}
	return 0;
}